package com.zoe.app.filter;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * @author Zoe.Zhang
 * @date 2021/10/10
 * @description
 */
@WebFilter(urlPatterns = "/*")
public class MyFilter4 implements Filter {
    private static final Logger log = LoggerFactory.getLogger(MyFilter4.class);

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        log.error("myFilter04-start");
        filterChain.doFilter(servletRequest, servletResponse);
        log.error("myFilter04 -end");
    }
}
